package com.ardf.service;

import com.ardf.entity.Signin;
import com.ardf.entity.dto.SignInTableDto;
import com.ardf.entity.vo.SignInUpdateOneVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ShiYunHao
 * @since 2025-01-06
 */
public interface ISigninService extends IService<Signin> {

    /**
     * 分页
     */
    Page<SignInTableDto> searchAll(Integer pageSize, Integer pageNum, Long competitionId, String searchAll);

    /**
     *下载签到表
     */
    void download(HttpServletResponse response, Long competitionId) throws IOException;
    /**
     * 单个签到
     */
    void updateOne(SignInUpdateOneVo signInUpdateOneVo);
    /**
     * 批量签到
     */
    void updateBatch(List<Long> ids);
}
